/*
 * gprs.h
 *
 *  Created on: 2017年7月5日
 *      Author: zjm
 */

#ifndef TABS_GPRS_H_
#define TABS_GPRS_H_

int get_apn(struct mg_connection *nc);
int get_apn_user(struct mg_connection *nc);
int get_apn_passwd(struct mg_connection *nc);

#define GPRS_PARAM_LIST	\
PARAM_ITEM(get_apn),\
PARAM_ITEM(get_apn_user),\
PARAM_ITEM(get_apn_passwd),

int apn_save(struct mg_connection *nc,struct http_message *hm);
int gprs_restart(struct mg_connection *nc,struct http_message *hm);

#define GPRS_ACTION_LIST	\
ACTION_ITEM(apn_save),\
ACTION_ITEM(gprs_restart),

#endif /* TABS_GPRS_H_ */
